# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=qmlrunner
pkgver=1.0.1
pkgrel=0
pkgdesc="Runner for QML-only apps"
url="https://github.com/rinigus/qmlrunner"
arch="all !armhf" # armhf blocked by qt5-qtdeclarative
license="GPL-3.0-or-later"
makedepends="qt5-qtbase-dev qt5-qtdeclarative-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/rinigus/qmlrunner/archive/$pkgver.tar.gz"
options="!check"

build() {
	qmake-qt5 \
		PREFIX=/usr
	make
}

check() {
	make test
}

package() {
	INSTALL_ROOT="$pkgdir" make install
}

sha512sums="1157eee4e26b64fdb968416198de5bd96f57a002d9a07df0c26bf6111ad35244e4c0ab214d739121bfd547fc1ea35cec26986507d4eda51fa6442998e5284ecb  qmlrunner-1.0.1.tar.gz"
